<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/4
 * Time: 20:00
 */
$old_file_name =  $_FILES['file']['name'];
////echo '<br />';
$tempPath =  $_FILES['file']['tmp_name'];
//
//echo 'public/image/'.$old_file_name;

$newName = md5($old_file_name.time());

$arr = explode('.',$old_file_name);



move_uploaded_file($tempPath,'public/image/'.$newName.'.'.$arr[1]);

echo '上传成功';


$name=$_POST['name'];
$name=$_POST['te'];
$name=$_POST['sex'];
$name=$_POST['woman'];
echo '更新成功';